/* pfs33MapChunk.h
 *
 * --
 * Copyright (c) 2012, Christophe Huriaux
 * Distributed under the terms of the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * --
 */

#ifndef MCPACKET_pfs33_H
#define MCPACKET_pfs33_H

#include <string>
#include <iostream>
#include <stdint.h>
#include <vector>
#include <packet/McPacket.h>

class pfs33MapChunk : public McPacketFromServer
{
    int32_t x;
    int16_t y;
    int32_t z;
    int8_t sizex;
    int8_t sizey;
    int8_t sizez;
    int32_t size;
    std::vector<uint8_t> data;

public:
    pfs33MapChunk();

    int16_t setField(uint8_t field, void* value);
    unsigned int length();

    int32_t getX();
    int16_t getY();
    int32_t getZ();
    int8_t getSizex();
    int8_t getSizey();
    int8_t getSizez();
    int32_t getSize();
    std::vector<uint8_t>& getData();

};

#endif // MCPACKET_pfs33_H
